﻿<%@ Page Title="更改密码-RBAC" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="RBAC.Administry.Account.ChangePassword" %>
<%@ Register Src="~/control/ActionReport.ascx" TagName="ActionReport" TagPrefix="uc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../style/css/jquery.jgrowl.css" rel="stylesheet" type="text/css" />
    <script src="../script/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../script/jquery.jgrowl_compressed.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        function done(){
            $.jGrowl("密码已更新!", { life: 1000 });
        }
        function invalid() {
            alert('当前密码验证失败!');
        }
        function closeInput() {
            $("#f").hide();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <h2 class="pagetitle key32">更改密码</h2>
    
    <p>
        <uc:ActionReport ID="report" runat="server" />
    </p>
    
    <dl>
        <dt>账户:</dt>
        <dd><asp:Literal ID="account" runat="server" Text="未指定" /></dd>
        <dt>描述:</dt>
        <dd><asp:Literal ID="display" runat="server" Text="未指定" /></dd>
    </dl>        
    
    <fieldset id="f">
        <legend>请填写表单</legend>
        <p>
            <label>当前密码</label><br />
            <asp:TextBox ID="current" runat="server"  TextMode="Password"/>
            <asp:RequiredFieldValidator runat="server" ControlToValidate="current" Display="Dynamic" ErrorMessage="当前密码必须填写" />
        </p>
        <p>
            <label>新密码</label><br />
            <asp:TextBox ID="replace" runat="server" TextMode="Password" />
            <asp:RequiredFieldValidator runat="server" ControlToValidate="replace" Display="Dynamic" ErrorMessage="新密码必须填写" />
        </p>
        <p>
            <label>重复新密码</label><br />
            <asp:TextBox ID="repeat" runat="server"  TextMode="Password"/>
            <asp:CompareValidator runat="server" ControlToValidate="repeat" ControlToCompare="replace" Operator="Equal" Type="String" ErrorMessage="新旧密码不一致" />
        </p>
        <p>
            <asp:Button ID="submit" runat="server" Text="确定" onclick="submit_Click" />
        </p>
    </fieldset>
    
    <asp:UpdatePanel ID="scriptUpdatePanel" runat="server" />
</asp:Content>
